package com.ysd.lis.entity.eq;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntity;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * <p>
 * 设备管理-设备类型
 * </p>
 *
 * @author prs
 * @since 2024-07-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "EQ_EQUIPMENT")
@TableName("EQ_EQUIPMENT")
public class EqEquipment extends BaseEntityJpa {

    private static final long serialVersionUID = 1L;

    /**
     * 设备编码
     */
    @TableField("EQUIPT_CODE")
    @Column(name = "EQUIPT_CODE")
    private String equiptCode;

    /**
     * 设备名称
     */
    @TableField("EQUIPT_NAME")
    @Column(name = "EQUIPT_NAME")
    private String equiptName;

    /**
     * 设备类型编码
     */
    @TableField("EQUIPT_TYPE_CODE")
    @Column(name = "EQUIPT_TYPE_CODE")
    private String equiptTypeCode;

    /**
     * 设备类型名称
     */
    @TableField("EQUIPT_TYPE_NAME")
    @Column(name = "EQUIPT_TYPE_NAME")
    private String equiptTypeName;


    /**
     * 规格型号
     */
    @TableField("SPECIFICATION")
    @Column(name = "SPECIFICATION")
    private String specification;

    /**
     * 供应商名称
     */
    @TableField("SUPPLIER_CODE")
    @Column(name = "SUPPLIER_CODE")
    private String supplierCode;

    /**
     * 供应商名称
     */
    @TableField("SUPPLIER_NAME")
    @Column(name = "SUPPLIER_NAME")
    private String supplierName;

    /**
     * 生产厂商
     */
    @TableField("MANU_CODE")
    @Column(name = "MANU_CODE")
    private String manuCode;

    /**
     * 生产厂商
     */
    @TableField("MANU_NAME")
    @Column(name = "MANU_NAME")
    private String manuName;

    @TableField("PRODUCE_DATE")
    @Column(name = "PRODUCE_DATE")
    private String produceDate;

    @TableField("FACTORY_DATE")
    @Column(name = "FACTORY_DATE")
    private String factoryDate;

    @TableField("PURCHASE_DATE")
    @Column(name = "PURCHASE_DATE")
    private String purchaseDate;

    @TableField("ACTIVATION_DATE")
    @Column(name = "ACTIVATION_DATE")
    private String activationDate;

    @TableField("WARRANTY_PERIOD")
    @Column(name = "WARRANTY_PERIOD")
    private String warrantyPeriod;

    /**
     * 采购人
     */
    @TableField("PURCHASER")
    @Column(name = "PURCHASER")
    private String purchaser;

    /**
     * 采购人
     */
    @TableField("PURCHASER_ID")
    @Column(name = "PURCHASER_ID")
    private String purchaserId;
    /**
     * 采购金额
     */
    @TableField("AMOUNT")
    @Column(name = "AMOUNT")
    private String amount;

    /**
     * 设备负责人
     */
    @TableField("MANAGER")
    @Column(name = "MANAGER")
    private String manager;

    /**
     * 设备负责人
     */
    @TableField("MANAGER_ID")
    @Column(name = "MANAGER_ID")
    private String managerId;

    /**
     * 售后负责人
     */
    @TableField("PRODUCT_LEADER")
    @Column(name = "PRODUCT_LEADER")
    private String productLeader;

    /**
     * 售后负责人电话
     */
    @TableField("PROD_LEADER_PHONE")
    @Column(name = "PROD_LEADER_PHONE")
    private String prodLeaderPhone;
    /**
     * 备注
     */
    @TableField("REMARK")
    @Column(name = "REMARK")
    private String remark;
    /**
     * 设备状态
     */
    @TableField("STATUS")
    @Column(name = "STATUS")
    private String status;
    /**
     * 设备使用状态
     */
    @TableField("USING_STATUS")
    @Column(name = "USING_STATUS")
    private String usingStatus;
    /**
     * 所属科室
     */
    @TableField("DEPT_CODE")
    @Column(name = "DEPT_CODE")
    private String deptCode;

    /**
     * 所属科室
     */
    @TableField("DEPT_NAME")
    @Column(name = "DEPT_NAME")
    private String deptName;

    @TableField("POCT")
    @Column(name = "POCT")
    private Integer poct;

    @TableField("INSTR_CODE")
    @Column(name = "INSTR_CODE")
    private String instrCode;//仪器代号

    /**
     * 序号
     */
    @TableField("SEQ")
    @Column(name = "SEQ")
    private Integer seq;

    @TableField(exist = false)
    @Transient
    private Integer usingStatusCnt;

}
